<div class="clear c25">&nbsp;</div>
<p style="color:green;"><%=  flash[:join_group] if flash[:join_group]%></p>
<div class="boxy">
  <a class="head">Group List</a>
  <div class="scroll">
    <% if !@user.groups.nil? %>
      <% @user.groups.each do |groups| %>
        <%= link_to "#{groups.name}" %>
      <%end%>
    <%end%>
  </div>
</div>
<div class="clear c25">&nbsp;</div>
<div class="boxy">
  <a class="subhead">Group Statement</a>
  <div class="scroll">
    <%if !@user_all.nil?%>
      <%@user_all.each do |user|%>
        <% if !user.statements.nil? %>
          <% user.statements.each do |statement| %>
            <% if statement.privacy == "group"%>
              <p><%= statement.message %></p>
              <p>created at :<%= statement.created_at %> - by :<%= user.login %></p>
            <%end%>
          <%end%>
        <%end%>
      <%end%>
    <%end%>
  </div>
</div>
<div class="clear c25">&nbsp;</div>
<div class="boxy">
  <a class="subhead">Group Bad Day Story</a>
  <div class="scroll">
    <%if !@user_all.nil?%>
      <%@user_all.each do |user|%>
        <% if !user.baddays.nil? %>
          <% user.baddays.each do |badday| %>
            <p><%= badday.message %></p>
            <% if !badday.alias.nil? %>
              <p>created at :<%= badday.created_at %> - by :<%=  badday.alias %></p>
            <%else%>
              <p>created at :<%= badday.created_at %> - by :<%=  user.login %></p>
            <%end%>
          <%end%>
        <%end%>
      <%end%>
    <%end%>
  </div>
</div>
<div class="clear c25">&nbsp;</div>
<div class="boxy">
  <a class="subhead">Group Question</a>
  <div class="scroll">
    <%if !@user_all.nil?%>
      <%@user_all.each do |user|%>
        <%if !user.questions.nil?%>
          <% user.questions.each do |question| %>
            <% if question.privacy == "group"%>
              <p><%= question.message %></p>
              <p>created at :<%= question.created_at %> - by :<%= user.login %></p>
            <%end%>
          <%end%>
        <%end%>
      <%end%>
    <%end%>
  </div>
</div>
